<template>
  <el-dialog title="活动图片" :visible.sync="showActivityImageDialog" center >
    <el-carousel indicator-position="outside" height="500px">
      <el-carousel-item v-for="item in this.imageList" :key="item.activity_image_id">
        <img :src="item.image" alt="">
      </el-carousel-item>
    </el-carousel>
  </el-dialog>
</template>

<script>
  export default {
    name: 'activityImage',
    data(){
      return{
        showActivityImageDialog: false,
        imageList: []
      }
    },

    methods:{
      showActiveImage(imageList){
        this.showActivityImageDialog = !this.showActivityImageDialog
        console.log(imageList)
        this.imageList = imageList
      }
    }

  }
</script>

<style scoped>
  img{
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
  }
</style>
